//
//  EAHistoryMeal.m
//  WhatToEat
//
//  Created by Mac on 15/3/26.
//  Copyright (c) 2015年 Mac. All rights reserved.
//

#import "EAHistoryMeal.h"
#import "RBCustomDatePickerView.h"

#import "FLEXManager.h"

//#import "PWSCalendarViewController.h"

@interface EAHistoryMeal ()
@end

@implementation EAHistoryMeal

- (void)viewDidLoad {
    [super viewDidLoad];
    
#if DEBUG
  //  [[FLEXManager sharedManager] showExplorer];
#endif
    [self updateUI];
}


-(void)updateUI
{


    
    
}


-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
   
    

    
    
    self.navigationItem.title=[CurrentDate convertDateFromFormatterString:@"yyyy年MM月dd日"];



}


- (BOOL)calendar:(FSCalendar *)calendar shouldSelectDate:(NSDate *)date
{

    if ([date timeIntervalSinceDate:[NSDate date]]>0) {
        
        return NO;
        
        
    }else
    {
        
    self.navigationItem.title=[CurrentDate dateFromFormatterString:@"yyyy年MM月dd日" andDate:date];
        
        return YES;
    
    }
    
    
    return YES;
    
    
}
- (void)calendar:(FSCalendar *)calendar didSelectDate:(NSDate *)date
{


}
- (void)calendarCurrentMonthDidChange:(FSCalendar *)calendar
{

   // NSLog(@"%@----%@",calendar.currentMonth);

}

@end
